import sys

from PySide6 import QtGui, QtWidgets
import resources

class MainWindow(QtWidgets.QMainWindow):
    def __init__(self):
        super().__init__()

        self.setWindowTitle("My App")
        b = QtWidgets.QPushButton("Press Me")

        icon = QtGui.QIcon(":/icons/add.png")
        b.setIcon(icon)
        self.setCentralWidget(b)

        self.show()

app = QtWidgets.QApplication(sys.argv)
w = MainWindow()
w.show()
app.exec()

